from celery_tasks.main import celery_app
from django.conf import settings
from django.core import mail
@celery_app.task()
def SendEmail(to_email,verify_url):
    html_message = '<p>尊敬的用户您好！</p>' \
                   '<p>请点击此链接修改密码：</p>' \
                   '<p><a href="%s">%s<a></p>' % ( verify_url, verify_url)
    mail.send_mail(
        subject= "博学谷验证短信",
        message="",
        from_email= settings.EMAIL_FROM,
        recipient_list= [to_email],
        html_message= html_message,

    )